<!DOCTYPE html>
<html lang="en">
	<head>
		<title> New Document </title>
		<meta charset="utf-8">
		<meta name="Author" content="">
		<meta name="Keywords" content="">
		<meta name="Description" content="">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<!-- Bootstrap -->
		<link href="${webRoot}resources/css/bootstrap.min.css" rel="stylesheet" media="screen">
		<link href="${webRoot}resources/css/style.css" rel="stylesheet">
		<script src="http://code.jquery.com/jquery-1.10.0.min.js"></script>
	</head>
<body class="main">
    <div id="label">
	<div style="text-align: right; cursor: default; height: 40px;">
	<span style="font-size: 16px;" onclick="CloseDiv('MyDiv','fade')">关闭</span>
	</div>
	<div class="wrap order-info">
		<table class="table table-bordered">
				<thead>
					<tr>
						<th>上传账户</th>
						<th>上传时间</th>
						<th>简介</th>
						<th>图片</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
				<#if listPic?exists>
				<#list listPic as picEntity>
					<tr>
					    <#if picEntity.member_id !=0>
						<td>${picEntity.membername}</td>
						<#else>
						<td>${picEntity.username}</td>
						</#if>
						<td>${picEntity.pic_date?string("yyyy-MM-dd")}</td>
						<td>${picEntity.pic_desc}</td>
						<td><img alt="" src="${picEntity.pic_url}" width="50" height="50"></td>
						<td>
						    <a href="javascript:deletePic(${picEntity.pic_id},${picEntity.goods_id})">删除</a>
						</td>
					</tr>
				</#list>
				<#else>
				   	 <tr>
				       <td colspan="6">没有查询到记录！</td>
				   </tr>
				</#if>
				</tbody>
			</table>			
	</div>			
		<#if listPic?exists>
		<div class="pagination pagination-right">
		  <input type="hidden" name="picgoodsId" id="picgoodsId" value="${picgoodsId}"/>
		  <ul>
		    <#if pageEntity.page==1>
		    <li class="disabled"><a href="#">&laquo;</a></li>
		    <#else>
		    <li><a href="javascript:pagePic(${pageEntity.page-1},${pageEntity.totalPage},${pageEntity.pageSize})">&laquo;</a></li>
		    </#if>
		    <#list 1..pageEntity.totalPage as i>
		         <#if pageEntity.page==i>
		    <li class="active"><a href="#">${i}</a></li>
		         <#else>
		    <li><a href="javascript:pagePic(${i},${pageEntity.totalPage},${pageEntity.pageSize})">${i}</a></li>
		        </#if>
		    </#list>
		   <#if pageEntity.page==pageEntity.totalPage>
		    <li class="disabled"><a href="#">»</a></li>
		    <#else>
		    <li><a href="javascript:pagePic(${pageEntity.page+1},${pageEntity.totalPage},${pageEntity.pageSize})">»</a></li>
		    </#if>
		  </ul>
		</div>
		</#if>	
		</div>
	<script src="${webRoot}resources/js/bootstrap.min.js"></script>
	<script src="${webRoot}resources/js/js.js"></script>
</body>
</html>

